package entity;

import java.io.Serializable;

public class Request implements Serializable {
	private static final long serialVersionUID = 1L;

	private int type = -1;

	/* type = 0 - register */
	private UserInfo register_usrinfo = null;

	/* type = 1 - login */
	private String login_name = null;
	private String login_pwd = null;

	/* type = 2 - search user */
	private long searchUser_s_uid = -1;
	private String searchUser_t_nickname = null;

	/* type = 3 - add friend */
	private long addFriend_s_uid = -1; // ������uid
	private long addFriend_t_uid = -1; // Ŀ����uid

	/* type = 4 - publish news feed */
	private TextInfo txtinfo = null;

	/* type = 5 - check news feed */
	private long checkNewsFeed_uid = -1;

	public Request(int type) {
		this.type = type;
	}

	public int getType() {
		return type;
	}

	public void setLogin_name(String login_name) {
		this.login_name = login_name;
	}

	public String getLogin_name() {
		return login_name;
	}

	public void setLogin_pwd(String login_pwd) {
		this.login_pwd = login_pwd;
	}

	public String getLogin_pwd() {
		return login_pwd;
	}

	public void setSearchUser_s_uid(long searchUser_s_uid) {
		this.searchUser_s_uid = searchUser_s_uid;
	}

	public long getSearchUser_s_uid() {
		return searchUser_s_uid;
	}

	public void setSearchUser_t_nickname(String searchUser_t_nickname) {
		this.searchUser_t_nickname = searchUser_t_nickname;
	}

	public String getSearchUser_t_nickname() {
		return searchUser_t_nickname;
	}

	public void setAddFriend_s_uid(long addFriend_s_uid) {
		this.addFriend_s_uid = addFriend_s_uid;
	}

	public long getAddFriend_s_uid() {
		return addFriend_s_uid;
	}

	public void setAddFriend_t_uid(long addFriend_t_uid) {
		this.addFriend_t_uid = addFriend_t_uid;
	}

	public long getAddFriend_t_uid() {
		return addFriend_t_uid;
	}

	public void setCheckNewsFeed_uid(long checkNewsFeed_uid) {
		this.checkNewsFeed_uid = checkNewsFeed_uid;
	}

	public long getCheckNewsFeed_uid() {
		return checkNewsFeed_uid;
	}

	public void setRegister_usrinfo(UserInfo register_usrinfo) {
		this.register_usrinfo = register_usrinfo;
	}

	public UserInfo getRegister_usrinfo() {
		return register_usrinfo;
	}

	public void setTxtinfo(TextInfo txtinfo) {
		this.txtinfo = txtinfo;
	}

	public TextInfo getTxtinfo() {
		return txtinfo;
	}
}
